from flask import Flask

app = Flask(__name__)


@app.route('/')
def home():
    return "Hello World!"


@app.route('/python')
def test():
    return "欢迎来到Python"


if __name__ == '__main__':
    #app.run(debug=True, host='0.0.0.0', port=8080)
    app.run(debug=True, host='localhost', port=8080)
